package analysesequence;

import com.amazonaws.auth.BasicAWSCredentials;
import com.amazonaws.services.ec2.AmazonEC2Client;
import com.amazonaws.services.s3.AmazonS3Client;
import java.io.*;

/**
 *
 * @author lorddoskias
 */
public class Constants {

    public static final String RESULT_DIR = "/home/ec2-user/results";
    public static final String UPLOAD_DIR = "/home/ec2-user/uploads";
    public static final String VELVETH_PATH = "/home/ec2-user/velvet_1.1.04/velveth";
    public static final String VELVETG_PATH = "/home/ec2-user/velvet_1.1.04/velvetg";
    public static final String BUCKET = "nib9-storage";
    public static final String SMTP_HOST_NAME = "";
    public static final int SMTP_HOST_PORT = 25;
    public static final String SMTP_AUTH_USER = "";
    public static final String SMTP_AUTH_PWD = "";
    private static AmazonS3Client s3ref = null;
    private static AmazonEC2Client ec2ref = null;

    public static AmazonS3Client getS3Obj() throws FileNotFoundException, IOException {
        if (s3ref == null) {
            s3ref = new AmazonS3Client(new BasicAWSCredentials("", ""));
            //return s3ref;
        }

        return s3ref;

    }

    public static AmazonEC2Client getEC2Obj() throws IOException {
        if (ec2ref == null) {
            ec2ref = new AmazonEC2Client(new BasicAWSCredentials("", ""));
        }

        return ec2ref;
    }
}
